<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<title>无标题文档</title>
<script src="js/jquery.js"></script>
    <script src="/jquery-2.2.3.min.js"></script>
    <script src="/method.js"></script>
<#include "public/app/mxcss.ftl">
</head>

<body>
<article class="hometop"><a href="javascript:history.back(-1);" class="left"><img src="/images/arrow-left.png"></a> <span>一卡通平台账户取现</span> </article>
<article class="usercenter">
    <section class="userlist mt22">
        <ul>
        	<li>
                <ul>
                    <li class="fl"> <span>可取现金额：</span> </li>
                    <#if Session.allBalance??>
                    <li class="fl"> <span><em class="forange">${Session.allBalance?if_exists}元</em></span> </li>
                    </#if>
				</ul>                
            </li>
        	<li>
            	<a href="/cash/cashchosecard">
                <ul>
                    <li class="fl"> <span>取&nbsp;&nbsp;&nbsp;&nbsp;现&nbsp;&nbsp;&nbsp;至：</span> </li>
                    <#if Session.cardMap??>
                    <li class="fl"> <span>${Session.cardMap.newName?if_exists} 尾号${Session.cardMap.newCode?if_exists}</span> </li>
                    <li class="fr"> <span><i class="fa fa-angle-right f24 fgray"></i></span> </li>
                    </#if>
                </ul>
                </a>
				<div class="tips">
                	<p>最大可取限为 100,000.00 元</p>
				</div>
            </li>
        </ul>
    </section>
    <section class="userlist mt22">
        <ul>
        	<li>
                <ul>
                    <li class="fl"> <span>取 现 金 额：&nbsp;</span> </li>
                    <li class="fl"> <span><input type="text" id="cashMoney" placeholder="请输入取现金额"></span> </li>
				</ul> 
				<div class="tips">
                	<p>您的取现预计于 2014-01-01 到账</p>
				</div>
            </li>
        </ul>
    </section>
    <p>手续费：0 元</p>
    <aside class="ml22 mr22 mb22 mt22"> <a href="javascript:cash()" class="btn btn-orange">下一步</a> </aside>
</article>

<script>
    function cash(){
        var cashMoney = $("#cashMoney").val();
        if(cashMoney == ""){
            alert("输入提现金额不能为空!");
            return ;
        }

        var data = {tradeAmount:cashMoney};
        var url = "/cash/cashmoney";
        postReq(url,data,function(result){
            if(result.success){
                location.href="/cash/cashsec";
            }else{
                alert(result.msg);
            }
        })
    }
</script>
</body>
</html>